package services.impl;

import java.util.List;

import javax.ejb.EJB;
import javax.ejb.Stateless;

import services.ItemVentaService;
import dao.ItemVentaDAO;
import entities.ItemVenta;

@Stateless
public class ItemVentaServiceBean implements ItemVentaService{
	
	@EJB
	private ItemVentaDAO itemVentaDAO;

	@Override
	public void delete(Object id) {
		itemVentaDAO.delete(id);
	}

	@Override
	public List<ItemVenta> findAll() {
		return itemVentaDAO.findAll();
	}

	@Override
	public ItemVenta findByID(Object id) {
		return itemVentaDAO.findByID(id);
	}

	@Override
	public void persist(ItemVenta entity) {
		itemVentaDAO.persist(entity);
	}

	@Override
	public ItemVenta merge(ItemVenta entity) {
		return itemVentaDAO.merge(entity);
	}

}
